/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.meanzoft.m3d.model.mdx;

import java.util.LinkedList;
import org.lwjgl.util.vector.Vector2f;
import org.lwjgl.util.vector.Vector3f;

/**
 *
 * @author Meanz
 */
public class GeoSet {

    public LinkedList<Vector3f> vertexList = new LinkedList<Vector3f>();
    public LinkedList<Vector3f> normalList = new LinkedList<Vector3f>();
    public LinkedList<Vector3f> faceList = new LinkedList<Vector3f>();
    public LinkedList<String> groupList = new LinkedList<String>();
    public LinkedList<GeoSetGroup> matrixList = new LinkedList<GeoSetGroup>();
    public LinkedList<Vector2f> texCoords = new LinkedList<Vector2f>();

    public void fixVertexList() {
        Vector3f[] arr = (Vector3f[]) vertexList.toArray();
        Vector3f[] t_arr = new Vector3f[arr.length];

        for (int i = 0; i < arr.length; i++) {
            t_arr[arr.length - i - 1] = arr[i];
        }
        vertexList.clear();
        for (int i = 0; i < arr.length; i++) {
            vertexList.add(t_arr[i]);
        }

    }
}
